package Pattern.StrategyPattern;


import Pattern.StrategyPattern.fly.FlyWithWings;
import Pattern.StrategyPattern.quack.Squeak;

public class MallarDuck extends Duck {

    public MallarDuck() {
        flyBehavior=new FlyWithWings();
        quackBehavior=new Squeak();
    }

    @Override
    public void display() {
        System.out.println("I'am a MallarDuck!");
    }

}
